# FROM python:3.10-alpine
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# RUN apk update && apk add bash bash-doc bash-completion git freetds-dev jpeg-dev linux-headers mysql-client mariadb-dev build-base libffi-dev openssl-dev zlib-dev bzip2-dev pcre-dev ncurses-dev readline-dev tk-dev postgresql-dev
# WORKDIR /bid_spider
# ADD . /bid_spider/
# RUN pip install pip -U -i https://pypi.tuna.tsinghua.edu.cn/simple  \
#     && python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt  \
#     && sed -i 's/\r//' /start.sh \
#     && chmod +x /start.sh


FROM mcr.microsoft.com/playwright/python
WORKDIR /bid_spider
ADD . /bid_spider/
RUN pip install pip -U -i https://pypi.tuna.tsinghua.edu.cn/simple  \
    && python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt  \
    && sed -i 's/\r//' ./start.sh \
    && chmod +x ./start.sh
